﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="FlashNut"
    targetNamespace="http://tempuri.org/FlashNut.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/FlashNut.xsd"
    xmlns:mstns="http://tempuri.org/FlashNut.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="FlashNutter">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" name="Deck">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Flash">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Question" type="xs:string" />
                    <xs:element name="Answer" type="xs:string" />
                  </xs:sequence>
                  <xs:attribute name="Review" type="xs:boolean" use="required" />
                  <xs:attribute name="Current" type="xs:boolean" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Name" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
